﻿using System;
namespace 项目二;
class Program
{
    static void Main(string[] args)
    {
        Phone[] phones = new Phone[2];
        // for (int i = 0; i < phones.Length; i++)
        // {
        //     phones[i] = new Phone();
        // }
        phones[0]=new Phone("胡佳敏","华为","mate50");
        phones[1]=new Phone("张真源","vivo","x80");
        phones[2]=new Phone("比伯","oppo","reno10");


        // phones[0].拥有者 = "胡佳敏";
        // phones[0].型号 = "huawei";
        // phones[0].号码 = "13845792358";

        // phones[1].拥有者 = "陈佳琦";
        // phones[1].型号 = "iphone";
        // phones[1].号码 = "18076792098";


        for (int i = 0; i < phones.Length; i++)
        {
            Console.WriteLine(phones[i].获取信息());
        }


    }
}
